﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="AbingtonBooks.Pages.Register.Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    
    <table style="width:60%;margin:auto; margin-top:5%">
        <tr>
            <td>
                <asp:Label CssClass ="wsite-form-label" ID="Label1" runat="server">Name<span class="form-required">*</span></asp:Label></td>
            <td><asp:RequiredFieldValidator ID="RequiredFieldValidator1" 
                    ControlToValidate="txtFname" runat="server" 
                    ErrorMessage="Please enter your first name" ForeColor="Red"></asp:RequiredFieldValidator><br />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" 
                    ControlToValidate="txtLname" runat="server" 
                    ErrorMessage="Please enter your last name" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            
        </tr>
        <tr>
            <td>
                <asp:TextBox CssClass="wsite-form-input wsite-input" ID="txtFname" runat="server"></asp:TextBox><label class="wsite-form-sublabel" for="input-383530386893301993">First</label></td>
            <td><asp:TextBox CssClass="wsite-form-input wsite-input" ID="txtLname" runat="server"></asp:TextBox><label class="wsite-form-sublabel" for="input-383530386893301993">Last</label></td>
        </tr>
        <tr>
            <td><asp:Label CssClass ="wsite-form-label" ID="Label2" runat="server">Email<span class="form-required">*</span></asp:Label></td>
            <td><asp:RequiredFieldValidator ID="RequiredFieldValidator3" 
                    ControlToValidate="txtEmail1" runat="server" 
                    ErrorMessage="Please enter your email" ForeColor="Red"></asp:RequiredFieldValidator><br />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="txtEmail2" ErrorMessage="Please confirm your email" 
                    ForeColor="Red"></asp:RequiredFieldValidator><br />
                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                    ControlToValidate="txtEmail1" ControlToCompare="txtEmail2" 
                    ErrorMessage="Emails must match" ForeColor="Red"></asp:CompareValidator><br />
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="txtEmail1" ValidationExpression=".*@.*\..*" 
                    ErrorMessage="Invalid Email" ForeColor="Red"></asp:RegularExpressionValidator><br />
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                    ControlToValidate="txtEmail2" ValidationExpression=".*@.*\..*" 
                    ErrorMessage="Invalid Email" ForeColor="Red"></asp:RegularExpressionValidator>
            </td>
            
        </tr>
        <tr>
            <td><asp:TextBox CssClass="wsite-form-input wsite-input" ID="txtEmail1" 
                    runat="server" TextMode="Email"></asp:TextBox><label class="wsite-form-sublabel" for="input-383530386893301993">Email</label></td>
            <td><asp:TextBox CssClass="wsite-form-input wsite-input" ID="txtEmail2" 
                    runat="server" TextMode="Email"></asp:TextBox><label class="wsite-form-sublabel" for="input-383530386893301993">Confirm Email</label></td>
        </tr>
        <tr>
            <td><asp:Label CssClass ="wsite-form-label" ID="Label4" runat="server">Username<span class="form-required">*</span></asp:Label></td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" 
                    ControlToValidate="txtUser" runat="server" 
                    ErrorMessage="Please enter a username" ForeColor="Red"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td><asp:TextBox CssClass="wsite-form-input wsite-input" ID="txtUser" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td><asp:Label CssClass ="wsite-form-label" ID="Label3" runat="server">Password<span class="form-required">*</span></asp:Label></td>
            <td><asp:RequiredFieldValidator ID="RequiredFieldValidator6" 
                    ControlToValidate="txtPassword" runat="server" 
                    ErrorMessage="Please enter a password" ForeColor="Red"></asp:RequiredFieldValidator><br />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                    ControlToValidate="txtConfirmPassword" 
                    ErrorMessage="Please confirm your password" ForeColor="Red"></asp:RequiredFieldValidator><br />
                <asp:CompareValidator ID="CompareValidator2" runat="server" 
                    ControlToValidate="txtPassword" ControlToCompare="txtConfirmPassword" 
                    ErrorMessage="passwords must match" ForeColor="Red"></asp:CompareValidator><br /></td>
        </tr>
        <tr>
            <td><asp:TextBox CssClass="wsite-form-input wsite-input" ID="txtPassword" 
                    runat="server" TextMode="Password"></asp:TextBox><label class="wsite-form-sublabel" for="input-383530386893301993">Password</label></td>
            <td><asp:TextBox CssClass="wsite-form-input wsite-input" ID="txtConfirmPassword" 
                    runat="server" TextMode="Password"></asp:TextBox><label class="wsite-form-sublabel" for="input-383530386893301993">Confirm Password</label></td>
        </tr>
        <tr>
            <td><asp:Label CssClass ="wsite-form-label" ID="Label5" runat="server">Address<span class="form-required">*</span></asp:Label></td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" 
                    ControlToValidate="txtStreet" runat="server" 
                    ErrorMessage="Please enter your street address" ForeColor="Red"></asp:RequiredFieldValidator><br />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator9" 
                    ControlToValidate="txtCity" runat="server" 
                    ErrorMessage="Please enter your city" ForeColor="Red"></asp:RequiredFieldValidator><br />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator10" 
                    ControlToValidate="txtState" runat="server" 
                    ErrorMessage="Please enter your state" ForeColor="Red"></asp:RequiredFieldValidator><br />
                 <asp:RequiredFieldValidator ID="RequiredFieldValidator11" 
                    ControlToValidate="txtZip" runat="server" 
                    ErrorMessage="Please enter your Zip Code" ForeColor="Red"></asp:RequiredFieldValidator><br />
                <asp:RegularExpressionValidator ID="RegularExpressionValidator3" 
                    ControlToValidate="txtZip" runat="server" ValidationExpression="\d{5}" 
                    ErrorMessage="Invalid Zip Code" ForeColor="Red"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
             <td><asp:TextBox CssClass="wsite-form-input wsite-input" ID="txtStreet" runat="server"></asp:TextBox><label class="wsite-form-sublabel" for="input-383530386893301993">Street</label></td>
            <td><asp:TextBox CssClass="wsite-form-input wsite-input" ID="txtCity" runat="server"></asp:TextBox><label class="wsite-form-sublabel" for="input-383530386893301993">City</label></td>
        </tr>
        <tr>
             <td><asp:TextBox CssClass="wsite-form-input wsite-input" ID="txtState" 
                     runat="server" MaxLength="2"></asp:TextBox><label class="wsite-form-sublabel" for="input-383530386893301993">State</label></td>
            <td><asp:TextBox CssClass="wsite-form-input wsite-input" ID="txtZip" 
                    runat="server" MaxLength="5"></asp:TextBox><label class="wsite-form-sublabel" for="input-383530386893301993">Zip Code</label></td>
        </tr>
        <tr>
            <td><asp:LinkButton CssClass="wsite-button" OnClick="btnSubmit_Click"  ID="LinkButton1" runat="server"><span class="wsite-button-inner">Submit</span></asp:LinkButton></td>
                
            <td>&nbsp;</td>
        </tr>
    </table>
    
</asp:Content>
